<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<h:body>
	<rich:panel>
		<f:facet name="header">
			Shopping Cart
		</f:facet>
		<h:form>
			<h:dataTable value="#{catalogPagesController.shoppingcart.shoppingCartItems}" var="scil" id="a">
				<h:column>
					<h:outputText value="#{scil.catalogItem.product.name}" /> by supplier<h:outputText value="#{scil.catalogItem.supplierId}" />
				</h:column>
				<h:column>
					<rich:inputNumberSpinner  value="#{scil.qty}" >
					<f:ajax render="a"/></rich:inputNumberSpinner>
				</h:column>
				<h:column>
					<h:outputText value="#{scil.catalogItem.currency}" />
				</h:column>
				<h:column>
					<h:outputText value="#{scil.catalogItem.price}" />
				</h:column>
				<h:column>
					<h:outputText value="#{scil.qty*scil.catalogItem.price}" />
				</h:column>
			</h:dataTable>
			<h:commandLink action="CatalogItemListBuyerView" value="Continue Shopping" /><br />
			<h:commandLink action="CheckOut" value="CheckOut" />
		</h:form>
	</rich:panel>
</h:body>
</html>
